﻿<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true"
    CodeBehind="AreaGoodsDetail.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportArea.AreaGoodsDetail"
    Title="药品详细信息" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li><a href="#">药品详细信息</a> </li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                通用名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                剂型：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMedicineModelName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPurchaseName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                采购规格：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPack" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查  询" CssClass="btn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwDetail" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！" OnRowCreated="gvwDetail_RowCreated">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="PurchaseCount" HeaderText="采购数量" />
            <asp:BoundField DataField="DistributeCount" HeaderText="配送数量" ReadOnly="True" />
            <asp:BoundField DataField="WarehouseCount" HeaderText="入库数量" ReadOnly="True" />
            <asp:BoundField DataField="PurchaseAmount" HeaderText="采购总金额" ReadOnly="True" />
            <asp:BoundField DataField="WarehouseAmount" HeaderText="入库总金额" ReadOnly="True" />
            <%--<asp:TemplateField HeaderText="配送总金额">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblOrderName" Text='<%#(Convert.ToDecimal(DataBinder.Eval(Container,"DataItem.DistributeCount")) * Convert.ToDecimal(DataBinder.Eval(Container,"DataItem.Price"))) %>'>
			    
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="addDataColumnPSJE" HeaderText="配送总金额" ReadOnly="true" />
            <asp:BoundField DataField="OrderName" HeaderText="采购单名称" ReadOnly="True" />
            <asp:BoundField DataField="StartTime" HeaderText="开始时间" ReadOnly="True" />
            <asp:BoundField DataField="PlanEndTime" HeaderText="截止时间" ReadOnly="True" />
            <asp:BoundField DataField="ProductName" HeaderText="通用名" ReadOnly="True" />
            <asp:BoundField DataField="MedicineModelName" HeaderText="剂型" ReadOnly="True" />
            <asp:BoundField DataField="Pack" HeaderText="采购规格" ReadOnly="True" />
            <asp:BoundField DataField="Unit" HeaderText="采购单位" ReadOnly="True" />
            <asp:BoundField DataField="Price" HeaderText="采购单价（元）" ReadOnly="True" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" ReadOnly="True" />
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" ReadOnly="True" />
            <asp:BoundField DataField="HospitalName" HeaderText="采购医院" ReadOnly="True" />
        </Columns>
    </asp:GridView>
    <div>
        <span style="float: left; width: 30%">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />
        </span><span style="float: right; width: 70%">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                Height="20px" ShowPageSizeBox="True" AlwaysShow="True">
            </webdiyer:AspNetPager>
        </span>
</asp:Content>
